package org.example.domain;

import java.util.List;

/**
 * @author Jimmy
 * @version 1.0
 */
public class PageBean<T>{
    private int total;
    private int pagenum;
    private List<User> users;
    private List<T> list;

    public PageBean() {
    }

    public PageBean(int total, int pagenum) {
        this.total = total;
        this.pagenum = pagenum;
    }

    public PageBean(int total, int pagenum, List<T> list) {
        this.total = total;
        this.pagenum = pagenum;
        this.list = list;
    }

    public PageBean(int total, int pagenum, List<User> users, List<T> list) {
        this.total = total;
        this.pagenum = pagenum;
        this.users = users;
        this.list = list;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPagenum() {
        return pagenum;
    }

    public void setPagenum(int pagenum) {
        this.pagenum = pagenum;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> lists) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "total=" + total +
                ", pagenum=" + pagenum +
                ", users=" + users +
                ", list=" + list +
                '}';
    }
}
